<html>
<head>
    <title>选择地址</title>
    <script src="/static/js/jquery-1.12.4.min.js"></script>
    <script>
        $(function () {
            //加载省和直辖市数据
            $.get('/get_pro/',function (data) {
                //格式化成json对象
                json=JSON.parse(data.message);
                //迭代
                $.each(json,function (i,item) {
                    $('#pro').append("<option value="+item.pk+">"+item.fields.atitle+"</option>");
                });
            });
        });


    </script>
</head>
<body>
<select id="pro">
    <option value="">请选择省</option>
</select>
<select id="city">
    <option value="">请选择市</option>
</select>
<select id="dis">
    <option value="">请选择区县</option>
</select>
</body>
</html>